package net.huashitong.ssydt.provider.exam.service;


import net.huashitong.ssydt.exam.entity.SsExamErrorQuestion;
import net.huashitong.ssydt.exam.entity.vo.ErrorRecordsInVO;
import net.huashitong.ssydt.exam.entity.vo.QuestionErrorCollectionListInVO;
import net.huashitong.ssydt.exam.entity.vo.QuestionErrorListOutVO;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.09.06
 */
public interface SsExamErrorQuestionService {

    int deleteByPrimaryKey(Long id);

    int insert(SsExamErrorQuestion record);

    int insertSelective(SsExamErrorQuestion record);

    SsExamErrorQuestion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SsExamErrorQuestion record);

    int updateByPrimaryKey(SsExamErrorQuestion record);

    SsExamErrorQuestion getByUserIdWithQuestionId(String userId, Long questionId);

    List<QuestionErrorListOutVO> countGroupByBelongYearMonthByUserId(QuestionErrorCollectionListInVO questionErrorCollectionListInVO);

    List<SsExamErrorQuestion> findByUserIdWithBelongYearMonth(String userId, String belongYearMonth);

    int countLessTanErrorQuestionId(String errorQuestionId, ErrorRecordsInVO belongYearMonth);

    int deleteByUserId(String userId);

    int countUserIdWithBelongYearMonth(String userId, String belongYearMonth);
}
